<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\admin\model;

class ShopBanner extends \app\BaseModel
{
    protected $name = "longbing_card_shop_carousel";
    protected static function init()
    {
    }
    public function bannerList($dis, $page = 10)
    {
        $data = self::where($dis)->paginate($page)->toArray();
        return $data;
    }
    public function bannerUpdate($dis, $data)
    {
        $data["update_time"] = time();
        $res = self::where($dis)->update($data);
        return $res;
    }
    public function bannerAdd($data)
    {
        $data["create_time"] = time();
        $res = self::insert($data);
        return $res;
    }
    public function bannerDel($dis)
    {
        $res = self::where($dis)->delete();
        return $res;
    }
    public function bannerInfo($dis)
    {
        $data = self::where($dis)->find();
        return !empty($data) ? $data->toArray() : $data;
    }
}

?>